package org.bigjava.buff.common.util;


import org.bigjava.buff.user.bean.User;

//非空数据验证工具类
public class NotEmptyVerificationUtil {


    //手机号 密码是否为空字符和空数据
    public boolean isEmptyTelPwd(User user) {

        if (user == null) return false;
        if(user.getTellphone() == null || user.getPassword() == null) return false;
        if (user.getTellphone().equals("") || user.getPassword().equals("")) return false;
        return true;
    }


    //密码
    public boolean isEmptyPwd(String oldPwd,String newPwd){

        if(newPwd == null|| newPwd == "") return true;

        return false;
    }



}
